package com.gdpu.bean;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author yty
 * @since 2022-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class Stock implements Serializable{//序列化

    private static final long serialVersionUID=1L;

    private Integer goodsId;

    private Integer houseId;

    private Integer number;

    private Integer upperAlert;

    private Integer underAlert;


    //货物名
    @TableField(exist = false)
    private String name;
    //仓库名
    @TableField(exist = false)
    private String houseName;
    //仓库地址
    @TableField(exist = false)
    private String address;
    //商品价格
    @TableField(exist = false)
    private Integer price;
    //规格
    @TableField(exist = false)
    private String size;
    //包装
    @TableField(exist = false)
    private String packages;

    public Stock(Integer goodsId, Integer houseId, Integer number, Integer upperAlert, Integer underAlert) {
        this.goodsId = goodsId;
        this.houseId = houseId;
        this.number = number;
        this.upperAlert = upperAlert;
        this.underAlert = underAlert;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getHouseId() {
        return houseId;
    }

    public void setHouseId(Integer houseId) {
        this.houseId = houseId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getUpperAlert() {
        return upperAlert;
    }

    public void setUpperAlert(Integer upperAlert) {
        this.upperAlert = upperAlert;
    }

    public Integer getUnderAlert() {
        return underAlert;
    }

    public void setUnderAlert(Integer underAlert) {
        this.underAlert = underAlert;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHouseName() {
        return houseName;
    }

    public void setHouseName(String houseName) {
        this.houseName = houseName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getPackages() {
        return packages;
    }

    public void setPackages(String packages) {
        this.packages = packages;
    }
}
